package top.yongyan0624.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import top.yongyan0624.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yongyan
 * @since 2021-05-17
 */
public interface MessageService extends IService<Message> {
    Page<Message> getMessage(Long postId, Integer pageNum, Integer pageSize);

    Page<Message> getMessageById(Long postId, Integer pageNum, Integer pageSize);

    Page<Message> messageCache(Long postId, Page<Message> pageData);
}
